package www.openteam.com.contract.policy;

import java.util.List;

import www.openteam.com.bean.ApprovalStatu;
import www.openteam.com.bean.PayableApproval;
import www.openteam.com.bean.ProOrder;

/**
 * Created by kylin on 2017/1/16.
 */

public class PurchaseOrderApprovalContract {

    public interface PurchaseOrderApprovalView {
//       queryPrOrder(@Query("rdsno") String rdsno, @Query("") String code,
// @Query("orderStatus") String orderStatus, @Query("startDate") long startDate,
// @Query("endDate") long endDate, @Query("pageSize") int PageSize);

        String getRdsno();

        String getCode();

        String getOrderStatus();

        long getStartTime();

        long getEndTime();
        String getStype();
        String getMoreCom();


        void queryPOASuccess(List<ProOrder.DataEntity> data);

        void queryPOAFail(String failMsg);

        void approvalPOASuccess(ApprovalStatu aprovalStatu);

        void approvalPOAFail(String failMsg);

        void unApprovalPOASuccess(ApprovalStatu aprovalStatu);

        void unApprovalPOAFail(String failMsg);
    }

    public interface PurchaseOrderApprovalPresenter {

        void queryPrOrder(String rdsno, String code, String orderStatus,
                          long startTime, long endTime, String stype, String moreCom, int PageSize);

        void unprApprovalUpdate(int id);

        void prApprovalUpdate(int id);
    }

}
